package org.cloud.im.core.listener;

import org.cloud.im.core.ImChannelContext;
import org.cloud.im.core.exception.ImException;
import org.cloud.im.core.packets.Group;

/**
 * @Author: w.weidong.lin@abite.com
 * @Description: TODO
 * @Date: create in 2021/10/19 15:01
 */
public interface ImGroupListener {
    /**
     * 绑定群组后回调该方法
     *
     * @param imChannelContext IM通道上下文
     * @param group            绑定群组对象
     * @throws ImException
     * @author WChao
     */
    void onAfterBind(ImChannelContext imChannelContext, Group group) throws ImException;

    /**
     * 解绑群组后回调该方法
     *
     * @param imChannelContext IM通道上下文
     * @param group            绑定群组对象
     * @throws ImException
     * @author WChao
     */
    void onAfterUnbind(ImChannelContext imChannelContext, Group group) throws ImException;

}
